#include <stdio.h>
#include <math.h>

#define PI 3.141592654

int main() {
	short num1 = 0;
	int num2 = 0;
	long num3 = 0;
	long long num4 = 0;
	unsigned int num5 = 0;

	scanf("%hd", &num1);
	scanf("%d", &num2);
	scanf("%ld", &num3);
	scanf("%lld", &num4);
	scanf("%u", &num5);

	printf("%hd\n", num1);
	printf("%u\n", num2);
	printf("%o\n", num3);
	printf("%X\n", num4);
	printf("%X\n", num5);

	return 0;
}
